const express = require('express');
const foodTypeCtrl = require('../controllers/foodType.server.controller.js');

module.exports = (app) => {
    const router = express.Router();
    
    router.route('/addFoodType/:foodTypeName')
     .post(foodTypeCtrl.addFoodType);

    router.route('/getFoodTypeByFoodTypeId/:foodTypeId')
    .post(foodTypeCtrl.getFoodTypeByFoodTypeId);

    router.route('/getAllFoodType')
        .get(foodTypeCtrl.getAllFoodType);

    app.use('/foodType', router);
};